import 'package:FlutterDemo/widget/scrollviews/helpers/helper_datatable.dart';
import 'package:flutter/material.dart';

/// DataTable 控件显示表格数据，DataTable 需要设置行和列
class SampleDataTableWidget extends StatefulWidget {
  const SampleDataTableWidget({Key? key}) : super(key: key);

  @override
  _SampleDataTableWidgetState createState() => _SampleDataTableWidgetState();
}

class _SampleDataTableWidgetState extends State<SampleDataTableWidget> {
  @override
  Widget build(BuildContext context) {
    return ListView(
      children: [
        Container(
            alignment: Alignment.center,
            child: Text(
              "简单使用",
              style: TextStyle(fontSize: 20),
            )),
        buildSampleDT(),
        Container(
            alignment: Alignment.center,
            child: Text(
              "显示排序",
              style: TextStyle(fontSize: 20),
            )),
        buildSampleDT2(),
        Container(
          alignment: Alignment.center,
          child: Text(
            "学员信息",
            style: TextStyle(fontSize: 20),
          ),
        ),
        buildStudentList()
      ],
    );
  }
}
